import request from '@/utils/request'

// 查询合同催款列表
export function listReminder(query) {
  return request({
    url: '/business/reminder/list',
    method: 'get',
    params: query
  })
}

// 查询合同催款列表
export function listContractReminder(query) {
  return request({
    url: '/business/reminder/listContractReminder',
    method: 'get',
    params: query
  })
}

// 查询合同催款详细
export function getReminder(reminderId) {
  return request({
    url: '/business/reminder/' + reminderId,
    method: 'get'
  })
}

// 新增合同催款
export function addReminder(data) {
  return request({
    url: '/business/reminder',
    method: 'post',
    data: data
  })
}

// 修改合同催款
export function updateReminder(data) {
  return request({
    url: '/business/reminder',
    method: 'put',
    data: data
  })
}

// 删除合同催款
export function delReminder(reminderId) {
  return request({
    url: '/business/reminder/' + reminderId,
    method: 'delete'
  })
}

// 导出合同催款
export function exportReminder(query) {
  return request({
    url: '/business/reminder/export',
    method: 'get',
    params: query
  })
}